package com.hongtu.supplychain.finance.consumer.replyata;


import com.fasterxml.jackson.annotation.JsonInclude;

/***
 *
 * 作为系统应答对象
 * 默认值：{code:200,msg:ok}
 *
 *
 */
public class ReplyData {

    private Integer code;
    private String  msg;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Object  data;

    public ReplyData() {
        this.code   = 200;
        this.msg    = "ok";
    }

    public ReplyData(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "ReplyData{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
